<?php
include_once("../../php/include_all.php");

$ids=$_GET[ids];
$skpd=get_datas("select s.id_skpd, s.nama_skpd from mus_skpd s, mus_bidang_bappeda b, mus_subbidangbappeda sb where s.id_subbidangbappeda=sb.id_subbidangbappeda and b.id_bdgbapeda=sb.id_bdgbapeda and b.id_bdgbapeda='$ids' order by s.nama_skpd asc");
foreach ($skpd as $skpd){
	$idskpd=$skpd['id_skpd'];
	$namaskpd=$skpd['nama_skpd'];
	//secho $data=$idskpd."__".$namaskpd;
	echo "<option value='$idskpd'>$namaskpd</option>";
}
/*
$idpro = $_GET[idpro];
$program = get_datas("select id_keg, nama_kegiatan FROM mus_program p, mus_kegiatan k WHERE p.id_program=k.id_program and p.id_program='$idpro'");
foreach ($program as $program){
	$idkeg=$program['id_keg'];
	$namakeg=$program['nama_program'];
	echo "<input type='radio' name='kegi' id='kegi' value='$idkeg'>$namakeg</input>";
} */
?>